#include "Rule.h"

Rule::Rule( const Command& command, const Action& action ) :
	m_command( command ),
	m_action( action )
{}

Rule::Rule( const Rule& rule ) :
	m_command( rule.m_command ),
	m_action( rule.m_action )
{}

const Command& Rule::GetCommand() const {
	return m_command;
}

const Action& Rule::GetAction() const {
	return m_action;
}

bool Rule::Check( const Command& command ) const {
	return command == GetCommand();
}
